/**
 * Created by yoyoyk on 2017/6/6.
 */

import Relay from "react-relay";
export default class getSendDetails extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { infoOrder }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId:this.props.orderId,
                enId:this.props.enId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on infoOrderPayload {
                 infoOrder{
                  userId
                  value
                  errorCode
                  order{
                      orderGoodss{
                           createDate
                           styleNo
                           productName
                           quantity
                           acceptQuantity
                           gid
                           price
                           sendQuantity
                      }
                  }
              }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on infoOrderPayload {
                    infoOrder{
                        userId
                        value
                        errorCode
                        order{
                            orderGoodss{
                               createDate
                                styleNo
                                productName
                                quantity
                                acceptQuantity
                                gid
                                price
                                sendQuantity
                            }
                        }
                    }
                 }
            `]
        }];
    }
}


